package cn.edu.scau.cmi.wuyihan.composite.consistent;

import java.util.ArrayList;
import java.util.List;

public abstract class Organization {
	String name;
	private List<Organization> children = new ArrayList<>();
	
	public Organization() {}
	
	public Organization(String name) {
		this.name = name;
	}
	
	public String getName() {
		return this.name;
	}

	@Override
	public String toString() {
		return "Organization [name=" + name + "]";
	}
	
	public abstract void addChildren(Organization organization) ;
	
	public abstract void deleteChildren(Organization organization) ;

	public abstract List<Organization> getChildren();

	public abstract void setChildren(List<Organization> children);
}
